/*
 * @Author: 云风 1558003416@qq.com
 * @Date: 2022-05-11 11:48:02
 * @LastEditors: 云风 1558003416@qq.com
 * @LastEditTime: 2022-05-16 10:35:26
 * @FilePath: \vue3_admin_jinxu\src\main.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";

// 引入element3
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";

// 引入element图标注册
import elementIcon from "@/plugins/elementSvg";
// 引入国际化
import zhCn from "element-plus/es/locale/lang/zh-cn";

// 引入项目配置文件
import "./config";

//引入全局样式
import "@/assets/css/global.less";

// 引入自定义的指令系统
import directives from "./directive";

// 引入自定义的svg icon
import iconsSvg from "@/plugins/iconsSvg.js";

//引入代码高亮的库
// highlight 的样式，依赖包，组件
import "highlight.js/styles/atom-one-dark.css";
import "highlight.js/lib/common";
import hljsVuePlugin from "@highlightjs/vue-plugin";

const app = createApp(App);

app
  .use(ElementPlus, {
    locale: zhCn,
  })
  .use(elementIcon)
  .use(hljsVuePlugin)
  .use(iconsSvg)
  .use(store)
  .use(directives)
  .use(router)
  .mount("#app");

// console.log(app, ">><><><><><><");
// console.log(hljs,'>><><><><><><');
